package tyk.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import org.springframework.transaction.annotation.Transactional;
import tyk.pojo.Account;

@Mapper
@Transactional
public interface AccountMapper {
    @Select("select * from t_account where accountId = #{accountId}")
    public Account querryAccountByID(Integer accountId);

    @Update("update t_account set name = #{name},balance = #{balance} where accountId = #{accountId}")
    public int updateAccount(Account account);
}
